package com.lw.demo01;

/**
 * @author LW
 * @2020/10/1 19:52
 */
//代理
public class Proxy implements Rent{
    private Host host;

    public Proxy() {
    }

    public Proxy(Host host) {
        this.host = host;
    }

    public void rent() {
        seeHouse();
        host.rent();
        fare();
        heTong();
    }

    //看房
    public void seeHouse(){
        System.out.println("中介带你看房！");
    }
    //签合同
    public void heTong(){
        System.out.println("签租赁合同！");
    }
    //收中介费
    public void fare(){
        System.out.println("首中介费！");
    }

}
